<!-- Sidebar -->
<ul class="sidebar navbar-nav">
    #foreach ( $pmenu in $muser.menu )
        #set( $drop = false)
        #foreach ( $smenu in $pmenu.child )
            #if(${reqURI} == $!smenu.uri)
                #set( $drop = true)
            #end
        #end

    <li class="nav-item dropdown#if($drop) show #end">
        <a class="nav-link dropdown-toggle" href="#" id="pagesDropdown" role="button"
           data-toggle="dropdown" aria-haspopup="true"
           #if($drop == true)
            aria-expanded="true"
           #else
            aria-expanded="false"
           #end
           >
            <i class="fas fa-fw $pmenu.img"></i>
            <span>$pmenu.name</span>
        </a>
        <div class="dropdown-menu fix-width-nav-menu#if($drop) show #end" aria-labelledby="pagesDropdown">
            <!--<h6 class="dropdown-header">$pmenu.name</h6>-->
            #foreach ( $smenu in $pmenu.child )
                <a class="dropdown-item#if(${reqURI} == $!smenu.uri) active #end" href="$!smenu.uri">$!smenu.name</a>
            #end
        </div>
    </li>
    #end
</ul>